package com.xiaoq.shop.repository;

import com.xiaoq.shop.entity.SimpleLock;

/**
 * Created by chenjh on 2017/12/1.
 */
public interface ISimpleLockRepository {

    boolean save(SimpleLock simpleLock);

    /**
     * 根据couponId 锁
     * @param simpleLock
     * @return
     */
    boolean lock(SimpleLock simpleLock);

    /**
     * 释放锁
     * @param simpleLock
     * @return
     */
    boolean releaseLock(SimpleLock simpleLock);

}
